package com.example.RuanJianKeShe.Bean;

import java.util.Date;

public class Teacher {
    private int tno;
    private String tname;
    private int tage;
    private String tsex;
    private String telephone;
    private String email;
    private String teakey;
    private Date createTime;

    public Teacher(int tno, String tname, int tage, String tsex, String telephone, String email, String teakey) {
        this.tno = tno;
        this.tname = tname;
        this.tage = tage;
        this.tsex = tsex;
        this.telephone = telephone;
        this.email = email;
        this.teakey = teakey;
        createTime = new Date();
    }

    public Teacher() {
        createTime = new Date();
    }

    public int getTno() {
        return tno;
    }

    public void setTno(int tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public int getTage() {
        return tage;
    }

    public void setTage(int tage) {
        this.tage = tage;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTeakey() {
        return teakey;
    }

    public void setTeakey(String teakey) {
        this.teakey = teakey;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tno='" + tno + '\'' +
                ", tname='" + tname + '\'' +
                ", tage=" + tage +
                ", tsex='" + tsex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", teakey='" + teakey + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
